package coder814.User.service;

import coder814.User.dao.UserMapper;
import coder814.User.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by 来自北海的风 on 2017/8/14.
 */
@Service("userServiceImpl")
public class UserServiceImpl implements UserService {


    private UserMapper userMapper;
    @Autowired
    public UserServiceImpl(UserMapper userMapper){
        this.userMapper=userMapper;
    }
    @Override
    public User findUserByUserName(String username) {
        return userMapper.selectByUserName(username);
    }
}
